package com.tanhan.mindapp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tanhan.mindapp.dao.SysRole;
import com.tanhan.mindapp.dao.SysUserRole;

import java.util.List;

public interface SysUserRoleService extends IService<SysUserRole> {
    boolean assignRolesToUser(String userId, List<String> roleIds);

    List<String> getRoleIdsByUserId(String userId);

    // 通过userId获取用户的角色
    List<SysRole> getRolesByUserId(String userId);

    boolean removeRolesByUserId(String userId);
}
